package com.jn.erp.wechat.common.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <pre>
 *
 * </pre>
 *
 * @author sunjiyong
 * @since 2024/9/9 9:03
 */
@Data
@TableName("t_wx_access")
public class WxAccess implements Serializable {

    @ApiModelProperty("主键")
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    @ApiModelProperty("微信openid")
    private String openid;
    @ApiModelProperty("微信unionid")
    private String unionid;
    @ApiModelProperty("昵称")
    private String nickname;
    @ApiModelProperty("添加时间")
    private LocalDateTime addTime;
    @ApiModelProperty("添加时间")
    private LocalDateTime latestLogin;
    @ApiModelProperty("是否取消关注")
    private Boolean unsubscribe;
    @ApiModelProperty("头像")
    private String headImg;
    @ApiModelProperty("取消关注事件")
    private LocalDateTime unsubTime;
    @ApiModelProperty("取消关注时间")
    //    0 男 1 女
    private Integer gender;
    @ApiModelProperty("城市")
    private String city;
    @ApiModelProperty("省份")
    private String province;
    @ApiModelProperty("国家")
    private String country;
    @ApiModelProperty("wx公众号注册mp小程序注册")
    private String regFrom;
}
